<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
          width: 1960px;
            height: 42px;
            border: 1px solid #f60;
            margin: 100px auto;
        }
        .box a{
            text-decoration: none;
            color: #000000;
            font-size: 12px;

        }
         .box1{
             float: left;
            width: 60px;
            height: 30px;
             line-height: 30px;
             text-align: center;
            background: gold;
            margin-left: 40px;
            margin-top: 5px;
             cursor: pointer;
        }
        .box1:hover{
            background: palevioletred;
        }
    </style>
</head>
<body>
<div class="box">
    <a class="box1" href="#">第一页</a>
    <a class="box1" href="#">1</a>
    <a class="box1" href="#">2</a>
    <a  class="box1"href="#">3</a>
    <a class="box1" href="#">4</a>
    <a class="box1" href="#">17</a>
    <a class="box1" href="#">18</a>
    <a class="box1"href="#">19</a>
    <a class="box1" href="#">20</a>
    <a  class="box1"href="#">下一页</a>


</div>
</body>
</html>